home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1996 July: Mac OS SDK / Dev.CD Jul 96 SDK / Dev.CD Jul 96 SDK1.toast / Development Kits (Disc 1) / OpenDoc / OpenDoc Development / Debugging Support / OpenDoc Source Code / Messaging / DfltAcs.h < prev    next >
Encoding:
C/C++ Source or Header  |  1996-04-22  |  2.6 KB  |  97 lines  |  [TEXT/MPS ]

  1. /*
  2.     File:        DfltAcs.h
  3.  
  4.     Contains:    Implementation of Mac specific default accessors and handlers.
  5.  
  6.     Owned by:    Eric House
  7.  
  8.     Copyright:    © 1995 by Apple Computer, Inc., all rights reserved.
  9.  
  10.     Change History (most recent first):
  11.  
  12.         <14>     6/20/95    NP        1260389: Fix DrawPart's count proc
  13.         <13>      6/7/95    eeh        1251403: add ASSERT_FRAME_MATCHES_PART
  14.         <12>     5/18/95    eeh        1250061: add CountEmbeddedFrames
  15.         <11>     4/14/95    NP        1239651: Remove shared constants from here.
  16.         <10>      4/7/95    eeh        1236842: added TrySwapToRootPart
  17.          <9>     3/24/95    eeh        1232249: remove frame from
  18.                                     DEFAULT_ACCESSOR_PARAMS
  19.          <8>     3/13/95    NP        1223764: CreateSwapToken should take an
  20.                                     ODFrame* parameter. Add frame param to
  21.                                     DEFAULT_ACCESSOR_PARAMS.
  22.          <7>      3/2/95    eeh        1214783: finish work on lists
  23.          <6>     2/22/95    eeh        1222901: add StandardPartToken
  24.          <5>     2/21/95    eeh        1214783: Accessor/handler API changes
  25.          <4>      2/3/95    eeh        1217393: mod. params to use new ODDesc etc.
  26.          <3>     1/27/95    TJ        NP: Added forward class declarations.
  27.          <2>     1/25/95    eeh        1214783: more implementation
  28.          <1>      1/18/95    eeh        first checked in
  29.  
  30.     To Do:
  31. */
  32.  
  33. #ifndef _DFLTACS_
  34. #define _DFLTACS_
  35.  
  36.  
  37. #ifndef _CNTXTOSL_
  38. #include "CntxtOSL.h"
  39. #endif
  40.  
  41. #if ODDebug
  42. void ASSERT_FRAME_MATCHES_PART( Environment *ev, ODFrame* frame, ODPart* part );
  43. #else
  44. #define ASSERT_FRAME_MATCHES_PART( ev, frame, part )
  45. #endif
  46.  
  47. class ODDesc;
  48. class ODOSLToken;
  49. class ODAppleEvent;
  50. class DefaultAccessorSI;
  51. class ODSession;
  52.  
  53.  
  54. #define DEFAULT_ACCESSOR_PARAMS    Environment        *ev,                    \
  55.                                 ODPart*            scriptlessPart,            \
  56.                                 DescType        desiredClass,            \
  57.                                 OSLToken*        container,                \
  58.                                 DescType        containerClass,            \
  59.                                 DescType        form,                    \
  60.                                 ODDesc*            selectionData,            \
  61.                                 ODOSLToken*        value,                    \
  62.                                 ODSession*        session                    \
  63.  
  64. //                                ODFrame*        frame                    \
  65.                                 
  66. typedef ODError (*PartAccessorProc)(DEFAULT_ACCESSOR_PARAMS);
  67.  
  68. ODError GetWildcardFromPart(DEFAULT_ACCESSOR_PARAMS);
  69.  
  70. ODError TrySwapToRootPart(DEFAULT_ACCESSOR_PARAMS);
  71.  
  72. ODError GetPartFromNULL(DEFAULT_ACCESSOR_PARAMS);
  73.  
  74. ODError GetPropFromNULL(DEFAULT_ACCESSOR_PARAMS);
  75.  
  76. ODError GetWildcardFromList(DEFAULT_ACCESSOR_PARAMS);
  77.  
  78.  
  79. typedef ODError (*EventHandlerProc)( Environment *ev,
  80.         ODPart* thePart, ODAppleEvent* message,
  81.         ODAppleEvent* reply, ODSession* session);
  82.  
  83. ODError HandleGetData(    Environment *ev,
  84.                         ODPart* thePart,
  85.                         ODAppleEvent* message,
  86.                         ODAppleEvent* reply,
  87.                         ODSession* session);
  88.  
  89. ODError HandleSetData(    Environment *ev,
  90.                         ODPart* thePart,
  91.                         ODAppleEvent* message,
  92.                         ODAppleEvent* reply,
  93.                         ODSession* session);
  94.  
  95. #endif
  96.  
  97.